﻿@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.Routing
@using ThingsGateway.Admin.Application

@namespace ThingsGateway
<CascadingAuthenticationState>
    <Router AppAssembly="@typeof(Routes).Assembly" AdditionalAssemblies="NetCoreApp.RazorAssemblies.Where(a=>a!=typeof(Routes).Assembly)">
    <Found Context="routeData">

            <RouteView RouteData="@routeData" DefaultLayout="@typeof(Razor.MainLayout)" />

    </Found>
    <NotFound>
        <LayoutView Layout="@typeof(Razor.BaseLayout)">
        <ThingsGateway.Admin.Razor.NotFound404></ThingsGateway.Admin.Razor.NotFound404>
            </LayoutView>
        </NotFound>
</Router>

</CascadingAuthenticationState>

